//
//  NormalZombie.m
//  OCDay2homework
//
//  Created by dllo on 16/5/23.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "NormalZombie.h"

@implementation NormalZombie
-(void)setHealth:(NSInteger)health{
    _health = health;
}
-(NSInteger)health{
    return _health;
}
-(void)setReduceHealth:(NSInteger)reduceHealth{
    _reduceHealth = reduceHealth;
}
-(NSInteger)reduceHealth{
    return _reduceHealth;
}
-(instancetype)initWithHealth:(NSInteger)health withReduceHealth:(NSInteger)reduceHealth{
    self = [super init];
    if (self) {
        _health = health;
        _reduceHealth = reduceHealth;
    }
    return self;
}
+(instancetype)NormalZombieWithHealth:(NSInteger)health withReduceHealth:(NSInteger)reduceHealth{
    NormalZombie *zom = [[NormalZombie alloc] initWithHealth:health withReduceHealth:reduceHealth];
    return zom;
}
@end
